package com.cy.utils;

import org.slf4j.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.cy.service.Order_listService;

@Component
public class SchedulerTask {
	
	@Autowired
	private Order_listService order_listService;
	
	 private static final Logger logger = LoggerFactory.getLogger(SchedulerTask.class);
	 
	 @Scheduled(fixedRate = 5000)
	  public void scheduled1() {
	    logger.info("=====>>>>>刷新数据库中订单信息");
	    
	    order_listService.orderReFresh1();
		order_listService.orderReFresh2();
		order_listService.orderReFresh3();
		 logger.info("=====>>>>>预约单刷新完毕");
	  }
}

